]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Rename a variable for consistency
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 6 Jun 2013 19:41:48 +0000 (15:41 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 12 Jun 2013 20:11:37 +0000 (16:11 -0400)
We tend to use the name "a" in this method. This matches consistency
with the rest of the code.

https://bugzilla.gnome.org/show_bug.cgi?id=701954

js/ui/status/network.js

index e07fbffd2b9813039b2910a17aa5e58c6f2e1ccd..e587b5485fee4c3cbc95c579d4de34dbc0aced63 100644 (file)
@@ -1776,16 +1776,16 @@ const NMApplet = new Lang.Class({
         }
 
         for (let i = 0; i < closedConnections.length; i++) {
-            let active = closedConnections[i];
-            if (active._primaryDevice) {
-                active._primaryDevice.clearActiveConnection(active);
-                active._primaryDevice = null;
+            let a = closedConnections[i];
+            if (a._primaryDevice) {
+                a._primaryDevice.clearActiveConnection(a);
+                a._primaryDevice = null;
             }
-            if (active._inited) {
-                active.disconnect(active._notifyStateId);
-                active.disconnect(active._notifyDefaultId);
-                active.disconnect(active._notifyDefault6Id);
-                active._inited = false;
+            if (a._inited) {
+                a.disconnect(a._notifyStateId);
+                a.disconnect(a._notifyDefaultId);
+                a.disconnect(a._notifyDefault6Id);
+                a._inited = false;
             }
         }